#ifndef TRANSFORMERRORS_HPP_3
#define TRANSFORMERRORS_HPP_3

#include "errno.h"
#include "string.h"
namespace vroute_stack
{
    using ::strerror;

#define E_TRANS_SUCCESS            0
#define ERROR_START                33333
// #define E_OUT_OF_RANGE            ERROR_START+1
// #define E_BUFFER_TOO_SMALL        ERROR_START+2
// #define    E_VERSION_NOT_SUPPORT    ERROR_START+3
// #define E_INVALIDATE_PARAMETER    ERROR_START+4
// #define    E_SHOULD_SET_BEFORE_INIT    ERROR_START+5
// #define E_ALLOCMEMORYFAILED        ERROR_START+6
// #define E_CREATETHREADFAILED    ERROR_START+7
// #define    E_NOTSUPPORTLOOPBACK    ERROR_START+8
// #define E_NOSUCHVALUE            ERROR_START+9
// #define E_SYSTEM_ERROR            ERROR_START+10
// #define E_VALUE_ALREADY_EXIST    ERROR_START+11

    const int e_vroute_sucess = E_TRANS_SUCCESS;
    const int e_vroute_startmodule_failed = ERROR_START + 1;
    const int e_vroute_openfile_failed = ERROR_START + 2;
    const int e_vroute_stopSystem = ERROR_START + 3;
    const int e_vroute_restartSystem = ERROR_START + 4;
    const int e_vroute_itemNotExist = ERROR_START + 5;
    const int e_vroute_allocmemoryFailed = ERROR_START + 6;
    const int e_vroute_memoryallocaed = ERROR_START + 7;
    const int e_vroute_parasError = ERROR_START + 8;
    const int e_vroute_outOfRange = ERROR_START + 9;
    const int e_vroute_memoryOverFlow = ERROR_START + 10;
    const int e_vroute_nullptr = ERROR_START + 11;
    const int e_vroute_recordProcessed = ERROR_START + 12;
    const int e_vroute_badservertype = ERROR_START + 13;
    const int e_vroute_systemError = ERROR_START + 14;
    const int e_vroute_memoryEmpty = ERROR_START + 15;
    const int e_vroute_done = ERROR_START + 16;
    const int e_vroute_doNothing = ERROR_START + 17;
    const int e_vroute_waitNextTrun = ERROR_START + 18;
    const int e_vroute_invalidateOperation = ERROR_START + 19;
    const int e_vroute_statu_error = ERROR_START + 20;
    const int e_vroute_notSupport = ERROR_START + 21;
    const int e_vroute_itemAlreadyExist = ERROR_START + 22;

    const int e_vroute_filter_sucess = ERROR_START + 1000;
    const int e_vroute_filter_failed = ERROR_START + 1001;
}
#endif //TRANSFORMERRORS_HPP_3
